package cn.fulong.smebj.mapper;

import cn.fulong.smebj.entity.Answer;
import cn.fulong.smebj.entity.Maths;
import cn.fulong.smebj.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface MathsMapper  extends BaseMapper<Maths> {

    @Select("select * from maths order by create_time desc")
    IPage<Maths> queryList(IPage ipage);

    @Select("select * from maths where title LIKE CONCAT('%',#{title},'%')")
    List<Map<String,Object>> search(@Param("title") String title);
}